package com.leyou.domain.db1entity;

import com.alibaba.fastjson.annotation.JSONField;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

public class TurnTableActivity implements Serializable {

    private static final long serialVersionUID = -8103981073036733693L;

    private String activitykey;

    @NotBlank(message = "主题不能为空")
    private String theme;

    @NotBlank(message = "描述不能为空")
    private String description;

    @NotBlank(message = "分享按钮链接不能为空")
    @JSONField(name = "share_url")
    private String sharurl;

    @NotBlank(message = "背景链接不能为空")
    @JSONField(name = "background_url")
    private String backgroundurl;

    @NotBlank(message = "转盘格背景不能为空")
    @JSONField(name = "turntable_url")
    private String turntableurl;

    @NotBlank(message = "指针图不能为空")
    @JSONField(name = "pointer_url")
    private String pointerurl;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date begintime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date endtime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date creationtime;


    public TurnTableActivity() {
    }

    public TurnTableActivity(@NotBlank(message = "主题不能为空") String theme, @NotBlank(message = "描述不能为空") String description, @NotBlank(message = "分享按钮链接不能为空") String sharurl, @NotBlank(message = "背景链接不能为空") String backgroundurl, @NotBlank(message = "转盘格背景不能为空") String turntableurl, @NotBlank(message = "指针图不能为空") String pointerurl, Date begintime, Date endtime) {
        this.activitykey = activitykey;
        this.theme = theme;
        this.description = description;
        this.sharurl = sharurl;
        this.backgroundurl = backgroundurl;
        this.turntableurl = turntableurl;
        this.pointerurl = pointerurl;
        this.begintime = begintime;
        this.endtime = endtime;
    }

    public String getActivitykey() {
        return activitykey;
    }

    public void setActivitykey(String activitykey) {
        this.activitykey = activitykey;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getSharurl() {
        return sharurl;
    }

    public void setSharurl(String sharurl) {
        this.sharurl = sharurl;
    }

    public String getBackgroundurl() {
        return backgroundurl;
    }

    public void setBackgroundurl(String backgroundurl) {
        this.backgroundurl = backgroundurl;
    }

    public String getTurntableurl() {
        return turntableurl;
    }

    public void setTurntableurl(String turntableurl) {
        this.turntableurl = turntableurl;
    }

    public String getPointerurl() {
        return pointerurl;
    }

    public void setPointerurl(String pointerurl) {
        this.pointerurl = pointerurl;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Date getCreationtime() {
        return creationtime;
    }

    public void setCreationtime(Date creationtime) {
        this.creationtime = creationtime;
    }

    @Override
    public String toString() {
        return "TurnTableActivity{" +
                "activitykey='" + activitykey + '\'' +
                ", theme='" + theme + '\'' +
                ", description='" + description + '\'' +
                ", sharurl='" + sharurl + '\'' +
                ", backgroundurl='" + backgroundurl + '\'' +
                ", turntableurl='" + turntableurl + '\'' +
                ", pointerurl='" + pointerurl + '\'' +
                ", begintime=" + begintime +
                ", endtime=" + endtime +
                ", creationtime=" + creationtime +
                '}';
    }
}
